package com.xiaoye.digitaltwin.entity;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xiaoye.digitaltwin.controller.StudentController;
import com.xiaoye.digitaltwin.easyexcel.converter.StudentConverter;
import lombok.Data;

import java.io.Serializable;

/**
 * Create by xiaoye on 2023/3/22
 */

@Data
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;
    // @TableId(type = IdType.ASSIGN_ID)
    @ExcelIgnore
    private Long id;

    @ExcelProperty(value = "姓名")
    private String name;

    @ExcelProperty(value = "学号")
    private String stuNo;

    @ExcelProperty(value = "班级")
    private String classNo;

    @ExcelIgnore
    private String password;

    @ExcelIgnore
    private String avatar;

    // 是否更改过初始密码 0没有， 1有
    @ExcelIgnore
    private Integer status;

    // 性别  0女 1男
    @ExcelProperty(value = "性别",converter = StudentConverter.class)
    private String sex;

    @TableField(value = "baopoFlag")
    private String baopoFlag;

    @TableField(value = "neiyaFlag")
    private String neiyaFlag;

    @TableField(value = "waiyaFlag")
    private String waiyaFlag;

}
